import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';

class ActionsList extends StatelessWidget {
  final handleClickMenu;
  final handleClickStatistical;
  final handleReSet;
  final handleSelectRate;
  final handleRandom;

  ActionsList({
    Key key,
    this.handleClickMenu,
    this.handleClickStatistical,
    this.handleReSet,
    this.handleSelectRate,
    this.handleRandom,
  }) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Container(
//        width: ScreenUtil().setWidth(150),
        height: ScreenUtil().setHeight(600),
        child: Material(
          color: Color.fromRGBO(255, 255, 255, 0),
          child: Column(
            children: <Widget>[
              Column(
                children: <Widget>[
                  InkWell(
                    onTap: () {
                      handleSelectRate();
                    },
                    child: Container(
                      width: ScreenUtil().setWidth(140),
                      height: ScreenUtil().setHeight(75),
                      alignment: Alignment.center,
                      decoration: BoxDecoration(
                        image: DecorationImage(
                            image: AssetImage("images/btn.png"),
                            fit: BoxFit.contain),
                        borderRadius: BorderRadius.all(
                          Radius.circular(
                            ScreenUtil().setWidth(5),
                          ),
                        ),
                      ),
                      child: Center(
                        child: Text(
                          "范围",
                          style: TextStyle(
                            fontSize: ScreenUtil().setWidth(18),
                            color: Color.fromRGBO(232, 213, 187, 1),
                          ),
                        ),
                      ),
                    ),
                  ),
                  InkWell(
                    onTap: () {
                      handleRandom();
                    },
                    child: Container(
                      width: ScreenUtil().setWidth(140),
                      height: ScreenUtil().setHeight(75),
                      alignment: Alignment.center,
                      decoration: BoxDecoration(
                        image: DecorationImage(
                            image: AssetImage("images/btn.png"),
                            fit: BoxFit.contain),
                        borderRadius: BorderRadius.all(
                          Radius.circular(
                            ScreenUtil().setWidth(5),
                          ),
                        ),
                      ),
                      child: Center(
                        child: Text(
                          "随机发牌",
                          style: TextStyle(
                            fontSize: ScreenUtil().setWidth(18),
                            color: Color.fromRGBO(232, 213, 187, 1),
                          ),
                        ),
                      ),
                    ),
                  ),
//              RaisedButton(
//                onPressed: () {
//                  print("范围");
//                },
//                child: Text("范围"),
//              ),
//              RaisedButton(
//                onPressed: () {
//                  handleClickMenu(context);
//                },
//                child: Text("菜单"),
//              ),
//              RaisedButton(
//                onPressed: () {
//                  print("随机发牌");
//                },
//                child: Text("随机发牌"),
//              ),
//              RaisedButton(
//                onPressed: () {
//                  handleClickStatistical();
//                },
//                child: Text("统计"),
//              ),
                ],
              ),
              InkWell(
                onTap: () {
                  handleReSet(context);
                },
                child: Container(
                  width: ScreenUtil().setWidth(140),
                  height: ScreenUtil().setHeight(75),
                  alignment: Alignment.center,
                  decoration: BoxDecoration(
                    image: DecorationImage(
                        image: AssetImage("images/btn.png"),
                        fit: BoxFit.contain),
                    borderRadius: BorderRadius.all(
                      Radius.circular(
                        ScreenUtil().setWidth(5),
                      ),
                    ),
                  ),
                  child: Center(
                    child: Text(
                      "重置",
                      style: TextStyle(
                        fontSize: ScreenUtil().setWidth(18),
                        color: Color.fromRGBO(232, 213, 187, 1),
                      ),
                    ),
                  ),
                ),
              ),
            ],
          ),
        ));
  }
}
